package sean.org;

import java.util.Date;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Service
public class ScheduledTaskService {

	@Scheduled(fixedRate=5000)
	public void reportCurrnetTime(){
		System.out.println("每隔5s执行 "+new Date());
	}
	
//	@Scheduled(cron="")
//	public void fixTimeExecution(){
//		System.out.println("");
//	}
}
